<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="../common/Top.jsp"%>

<div id="BackLink">
  <a href="index.jsp">返回主页面>></a>
</div>

<div class="order-content">
  <form action="/ConfirmOrder" method="post">
    <table class="showTable" title="请确认订单信息">
      <tr>
        <td>下单时间:</td>
        <c:forEach items="${sessionScope.confirmOrderList}" var="confirmOrder">
          <td>${confirmOrder.time}</td>
        </c:forEach>
      </tr>
      <tr>
        <td>订单编号:</td>
        <c:forEach items="${sessionScope.confirmOrderList}" var="confirmOrder">
          <td>${confirmOrder.orderid}</td>
        </c:forEach>
      </tr>
      <tr>
        <td>宠物编号:</td>
        <c:forEach items="${sessionScope.confirmOrderList}" var="confirmOrder">
          <td>${confirmOrder.productid}</td>
        </c:forEach>
      </tr>
      <tr>
        <td>订单名:</td>
        <c:forEach items="${sessionScope.confirmOrderList}" var="confirmOrder">
          <td>${confirmOrder.name}</td>
        </c:forEach>
      </tr>
      <tr>
        <td>宠物单价:</td>
        <c:forEach items="${sessionScope.confirmOrderList}" var="confirmOrder">
          <td>￥${confirmOrder.unitprice}</td>
        </c:forEach>
      </tr>
      <tr>
        <td>数量:</td>
        <c:forEach items="${sessionScope.confirmOrderList}" var="confirmOrder">
          <td>${confirmOrder.num}</td>
        </c:forEach>
      </tr>
      <tr>
        <td>订单总价:</td>
        <c:forEach items="${sessionScope.confirmOrderList}" var="confirmOrder">
          <td>￥${confirmOrder.price}</td>
        </c:forEach>
      </tr>
        <tr>
            <td><label for="confirm-phone">订单预留电话:</label></td>
            <td colspan="${fn:length(sessionScope.confirmOrderList)}">
              <input type="text" id="confirm-phone" name="phone" value="${sessionScope.loginUser.phone}" required="required">
            </td>
        </tr>
        <tr>
          <td><label for="confirm-address">订单预留地址:</label></td>
          <td colspan="${fn:length(sessionScope.confirmOrderList)}">
            <input type="text" id="confirm-address" name="address" value="${sessionScope.loginUser.address}" required="required">
          </td>
        </tr>
    </table>
    <div class="confirm-input">
      <input type="submit" class="confirm-submit" value="确认提交订单">
    </div>
  </form>
</div>

<%@ include file="../common/Bottom.jsp"%>
